package com.wicket.okrbff.web.contorller;

import com.wicket.okrbff.biz.service.AppSceneService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrframework.integration.FwBaseAppSceneClient;
import com.wicket.okrframework.integration.dto.QueryBizSceneListRespDto;
import com.wicket.okrframework.integration.dto.QueryBizSceneListReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffBizSceneDto;
import cn.hutool.core.bean.BeanUtil;
import java.util.stream.Collectors;
import com.wicket.okrbff.common.exception.Assert;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "AppScene", tags = {"AppScene"})
@RestController
// @RequestMapping("/oms/appScene/")
public class AppSceneController {

    @Autowired
    AppSceneService appSceneService;



    /**
   * B1-1查询业务场景列表（边界）	
   * gen by moon at 8/10/2022, 3:30:23 AM
   */
    @PostMapping("/oms/appScene/queryBizSceneMenuList")
    @ApiOperation(value = "B1-1查询业务场景列表（边界）	", response = OkrResult.class)
    public OkrResult<BffQueryBizSceneMenuListRespDto> queryBizSceneMenuList(@RequestBody(required=false) @Validated BffQueryBizSceneMenuListReqDto reqDTO){
        return OkrResult.success(appSceneService.queryBizSceneMenuList(reqDTO));
    }

    /**
     * B1-1查询业务应用菜单列表（边界）
     */
    @PostMapping("/oms/platform/appScene/queryBizAppSceneMenuList")
    @ApiOperation(value = "B1-1查询业务应用菜单列表（边界）", response = OkrResult.class)
    public OkrResult<BffQueryBizAppSceneMenuListRespDto> queryBizAppSceneMenuList(@RequestBody(required = false) @Validated BffQueryBizAppSceneMenuListReqDto reqDTO) {
        return OkrResult.success(appSceneService.queryBizAppSceneMenuList(reqDTO));
    }



}
